//
//  DnpContactDelegate.m
//  dnp_plugin
//
//

#import "DnpContactDelegate.h"

@implementation DnpContactDelegate

- (instancetype)initWithResult:(FlutterResult)result {
    self = [super init];
    if (self) {
        _result = result;
    }
    return self;
}

#pragma mark - CNContactPickerDelegate

- (void)contactPickerDidCancel:(CNContactPickerViewController *)picker {
    if (self.result) {
        self.result(nil);
    }
}

@end
